package com.rongmai.db.model;

import java.util.Date;

/**
 * 库存调拨
 * @author zhenhua.sun
 * @title com.tailai.tailaishop.repository.model
 * @date 29/07/2017
 */
public class Allocation {

    private Long id;
    private Date createTime;
    private Date updateTime;
    private Integer version;
    /**
     * 出仓库Id
     */
    private Long outStoreId;
    /**
     * 入仓库Id
     */
    private Long inStoreId;
    private String productId;
    private Long amount;
    private String operator;
    /**
     * 状态
     * @link AllocationStatusEnum
     * 未操作:UN_OPERATOR
     * 在途:UNDER_WAY
     * 取消:CANCEL
     * 完成:FINISH
     */
    private String status;
    /**
     * 调拨类型
     * @link AllocationTypeEnum
     */
    private String type;
    /**
     * 外部流水号
     */
    private String outReferId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Long getOutStoreId() {
        return outStoreId;
    }

    public void setOutStoreId(Long outStoreId) {
        this.outStoreId = outStoreId;
    }

    public Long getInStoreId() {
        return inStoreId;
    }

    public void setInStoreId(Long inStoreId) {
        this.inStoreId = inStoreId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOutReferId() {
        return outReferId;
    }

    public void setOutReferId(String outReferId) {
        this.outReferId = outReferId;
    }
}
